Fall detection and prevention system